package com.itic.appbase.framework.xcx.type;
/**
 * 小程序支付类型
 * @author enne
 *
 */
public enum PayType {
	Delivery("0","货到付款"),WX("1","微信支付");
	private String type;
	private String name;
	
	PayType(String type, String name) {
		this.type = type;
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static PayType getPayType(String type) {
		PayType payType = null;
		switch (type) {
		case "0":
			payType = PayType.Delivery;
			break;
		case "1":
			payType = PayType.WX;
			break;
		}
		return payType;
	}
	
}
